﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Room Type Repository Interface
    /// </summary>
    public interface IRoomTypeRepository
    {
        /// <summary>
        /// Get All Room Type
        /// </summary>
        /// <returns></returns>
        IQueryable<RoomType> FindAllRoomType();

        /// <summary>
        /// Get Room Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<RoomType> FindRoomTypeByName(string strQuery);

        /// <summary>
        /// Get Room Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        RoomType GetRoomTypeById(int id);

        /// <summary>
        /// Add Room Type in the Database
        /// </summary>
        /// <param name="roomType"></param>
        void Add(RoomType roomType);

        /// <summary>
        /// Delete Room Type from the Database
        /// </summary>
        /// <param name="roomType"></param>
        void Delete(RoomType roomType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}